package com.juc.demo;

import java.time.Duration;
import java.time.LocalDateTime;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * @Created on 2021/4/4.
 * @Author by zbk
 * @Description:
 */
public class Pool {

    public static void main(String[] args) {

        ScheduledExecutorService s = Executors.newScheduledThreadPool(2);
        s.scheduleAtFixedRate(() -> {


            System.out.println("1213");


        }, 1, 1, TimeUnit.SECONDS);


        LocalDateTime d = LocalDateTime.now();
        d.withHour(12);


//        Duration.between()
    }
}
